<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src="/bower_components/angular/angular.js">
	</script>

	<title></title>
</head>
<body>
	<!-- <div ng-app="" ng-init="firstName='John'">
	  	<p>在输入框中尝试输入：</p>
	  	<p>姓名：<input type="text" ng-model="firstName"></p>
	  	<p>你输入的为： {{ firstName }}</p>
	</div>  -->
	<!-- <div ng-app="" ng-init="names=['Jani','Hege','Kai']">
	  		<p>使用 ng-repeat 来循环数组</p>
	 			 <ul>
	    		<li ng-repeat="x in names">
	      				{{ x }}
	   			 </li>
	 			 </ul>
	</div>
	 -->
	<!--  <div ng-app="" ng-init="names=[
				{name:'Jani',country:'Norway'},
				{name:'Hege',country:'Sweden'},
				{name:'Kai',country:'Denmark'}]">
	
			<p>循环对象：</p>
			<ul>
	  			<li ng-repeat="x in names">
	    		{{ x.name + ', ' + x.country }}
	  			</li>
			</ul>
	
			</div> 
	 -->
	<!-- <form ng-app="" name="myForm">
	    Email:
	    <input type="email" name="myAddress" ng-model="text">
	    <span ng-show="myForm.myAddress.$error.email">不是一个合法的邮箱地址</span>
	</form> -->
	<!-- <form ng-app="" name="myForm" ng-init="myText = 'test@runoob.com'">
	    Email:
	    <input type="email" name="myAddress" ng-model="myText" required></p>
	    <h1>状态</h1>
	    {{myForm.myAddress.$valid}}
	    {{myForm.myAddress.$dirty}}
	    {{myForm.myAddress.$touched}}
	</form> -->
		<!--<div ng-app="myApp" ng-controller="myCtrl">

		<h1>{{lastname}} 家族成员:</h1>

		<ul>
		<li ng-repeat="x in names">{{x}} {{lastname}}</li>
		</ul>

		</div>

		<script>

		var app = angular.module('myApp', []);

		app.controller('myCtrl', function($scope, $rootScope) {
		$scope.names = ["Emil", "Tobias", "Linus"];
		$rootScope.lastname = "Refsnes";
		});	-->
			<!-- <div ng-app="myApp" ng-controller="personCtrl">
			
			名: <input type="text" ng-model="firstName"><br>
			姓: <input type="text" ng-model="lastName"><br>
			<br>
			姓名: {{fullName()}}
			
			</div>
			
			<script>
			var app = angular.module('myApp', []);
			app.controller('personCtrl', function($scope) {
			$scope.firstName = "John";
			$scope.lastName = "Doe";
			$scope.fullName = function() {
			    return $scope.firstName + " " + $scope.lastName;
			}
			});
					</script> 
			
			
					</script> -->
			<!-- <div ng-app="myApp" ng-controller="namesCtrl">
			
					<ul>
					<li ng-repeat="x in names">
					{{ x.name + ', ' + x.country }}
					</li>
					</ul>
			
					</div>
			
					<script src="testAugular.js"></script>  -->
<!--  
				<div ng-app="myApp" ng-controller="siteCtrl"> 
				<ul>
				<li ng-repeat="x in names">
				{{ x.Name + ', ' + x.Country }}
				</li>
				</ul>
				</div>
				<script>
				var app = angular.module('myApp', []);
				app.controller('siteCtrl', function($scope, $http) {
				$http.get("/html/test/sites.php")
				.success(function (response) {$scope.names = response.sites;});
				});
				</script> -->



</body>
</html>